package com.itheima.demo.demo12;

import java.util.function.Consumer;

public class LamaCostur {
    public static void main(String[] args) {
        method((String s)->{
            String s1 = new StringBuffer(s).reverse().toString();
            System.out.println(s1);

        },(s)->{
            String[] split = s.split("\\.");
            System.out.println(split[0]);
            System.out.println(split[1]);

        });
    }

    private static void method(Consumer<String>n,Consumer<String>c) {
        n.andThen(c).accept("去吧.皮卡丘");
    }

}
